package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 水泥浆用量设计 对应表 CM_SLURRY_DOSAGE_DESIGN
public class CM_SlurryDosageDesign extends BABaseEntity {
    @Id
    @GenericGenerator(name="slurryDosageGenerator", strategy="uuid")
    @GeneratedValue(generator="slurryDosageGenerator")
    private String CM_SlurryDosageDesign_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "SLURRYTYPE", length = 150)
    private String slurryType;

    @Basic
    @Column(name = "DENSITY")
    private Double density;

    @Basic
    @Column(name = "FORMULA", length = 150)
    private String formula;

    @Basic
    @Column(name = "METHOD", length = 50)
    private String method;

    @Basic
    @Column(name = "RETURNHEIGHT")
    private Double returnHeight;

    @Basic
    @Column(name = "TOPDEPTH")
    private Double topDepth;

    @Basic
    @Column(name = "BOTDEPTH")
    private Double botDepth;

    @Basic
    @Column(name = "CEMENTPLUG")
    private Integer cementPlug;

    @Basic
    @Column(name = "ADDITIVEVOLUME")
    private Double additiveVolume;

    @Basic
    @Column(name = "BITSIZE")
    private Double bitSize;

    @Basic
    @Column(name = "CONTENT")
    private Double content;

    @Basic
    @Column(name = "MIXEDWATERVOLUME")
    private Double mixedWaterVolume;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
